home *** CD-ROM | disk | FTP | other *** search
/ Resource Library: Multimedia / Resource Library: Multimedia.iso / hypercrd / xcmds / shwdlg16.hqx / ShowDialog XCMD 1.6 / stack.txt < prev   
Text File  |  1989-05-10  |  8KB  |  228 lines

  1. -- stack: in.6
  2. -- format: 8 (HyperCard 1)
  3. -- flags: 0x1000 (none)
  4. -- protect password hash: 0
  5. -- maximum user level: 5 (scripting)
  6. -- window: Rect(x1=0, y1=0, x2=0, y2=0)
  7. -- screen: Rect(x1=0, y1=0, x2=0, y2=0)
  8. -- card dimensions: w=0 h=0
  9. -- scroll: x=0 y=0
  10. -- background count: 2
  11. -- first background id: 3411
  12. -- card count: 25
  13. -- first card id: 12118
  14. -- list block id: 7967
  15. -- print block id: 0
  16. -- font table block id: 0
  17. -- style table block id: 0
  18. -- free block count: 0
  19. -- free size: 0 bytes
  20. -- total size: 180448 bytes
  21. -- stack block size: 7168 bytes
  22. -- created by hypercard version: 0x01208000
  23. -- compacted by hypercard version: 0x01228000
  24. -- modified by hypercard version: 0x01228000
  25. -- opened by hypercard version: 0x01228000
  26. -- patterns[0]: 0x0000000000000000
  27. -- patterns[1]: 0x8000000008000000
  28. -- patterns[2]: 0x8800220088002200
  29. -- patterns[3]: 0x8888222288882222
  30. -- patterns[4]: 0x88AA22AA88AA22AA
  31. -- patterns[5]: 0xCCAA33AACCAA33AA
  32. -- patterns[6]: 0xEEAABBAAEEAABBAA
  33. -- patterns[7]: 0xEEBBBBEEEEBBBBEE
  34. -- patterns[8]: 0xFFBBFFEEFFBBFFEE
  35. -- patterns[9]: 0xFFBBFFFFFFBBFFFF
  36. -- patterns[10]: 0x8010022001084004
  37. -- patterns[11]: 0xFFFFFFFFFFFFFFFF
  38. -- patterns[12]: 0x8822882288228822
  39. -- patterns[13]: 0x1122448811224488
  40. -- patterns[14]: 0xC4800C6843023026
  41. -- patterns[15]: 0xB130031BD8C00C8D
  42. -- patterns[16]: 0xAA00AA00AA00AA00
  43. -- patterns[17]: 0x8822552288225522
  44. -- patterns[18]: 0x8855225588552255
  45. -- patterns[19]: 0x77DD77DD77DD77DD
  46. -- patterns[20]: 0x8000000000000000
  47. -- patterns[21]: 0xAA55AA55AA55AA55
  48. -- patterns[22]: 0x038448300C020101
  49. -- patterns[23]: 0x8244394482010101
  50. -- patterns[24]: 0x8814224188412214
  51. -- patterns[25]: 0x8080413E080814E3
  52. -- patterns[26]: 0x22048C7422179810
  53. -- patterns[27]: 0xBE808808EB088880
  54. -- patterns[28]: 0x25C8328964244C92
  55. -- patterns[29]: 0xA29C41BE2AC914EB
  56. -- patterns[30]: 0x40A00000040A0000
  57. -- patterns[31]: 0x8040200002040800
  58. -- patterns[32]: 0xAA00800088008000
  59. -- patterns[33]: 0xFF80808080808080
  60. -- patterns[34]: 0x081C22C180010204
  61. -- patterns[35]: 0xFF808080FF080808
  62. -- patterns[36]: 0xF87422478F172271
  63. -- patterns[37]: 0xBF00BFBFB0B0B0B0
  64. -- patterns[38]: 0xFF7FBE5DA2418000
  65. -- patterns[39]: 0xFAF5FAF5A050A050
  66. -- checksum: 0x0
  67. ----- HyperTalk script -----
  68. --ShowDialog XCMD 1.6 demo stack, May 10,1989
  69. --The XCMDs and XFCNs in this stack are
  70. --┬⌐Copyright 1988,1989 by Jay Hodgdon
  71. --                        Ignatz Software
  72. --                        587 Cutwater Lane
  73. --                        Foster City, CA  94404
  74. --
  75. --                        AppleLink:  D2792
  76. --                        CIS:  70411,63
  77. --                        GEnie:  JHODGDON
  78. --                        MacNet:  HODGDONJ
  79.  
  80. on openstack
  81.   hide msg
  82.   if the version < 1.2 then
  83.     ShowDialog 1,3756,"This stack requires at least HyperCard 1.2.1 to work!  (So upgrade!)",TRUE
  84.     go home
  85.     exit openStack
  86.   end if
  87.   if (item 2 of the loc of cd window) - (item 2 of the screenRect) < 20
  88.   then hide menubar
  89.   set userlevel to 5
  90.   pass openstack
  91. end openstack
  92.  
  93. on doMenu what
  94.   if what is "Help" then doHelp
  95.   else pass doMenu
  96. end doMenu
  97.  
  98. on left
  99.   visual scroll right
  100.   go prev cd
  101. end left
  102.  
  103. on right
  104.   visual scroll left
  105.   go next cd
  106. end right
  107.  
  108. on arrowKey what
  109.   if what is "left" then
  110.     left
  111.   else if what is "right" then
  112.     right
  113.   end if
  114. end arrowKey
  115.  
  116. on printIt
  117.   put bg fld 3 & return & bg fld 1 & return & bg fld 2 & return & bg fld 4 into container
  118.   put bg fld "Title" into prompt
  119.   PrintDoc prompt,container,prompt,times,12
  120. end printIt
  121.  
  122. on doHelp
  123.   global theItem
  124.   if theItem is empty then put 1 into theItem
  125.   put "About ShowDialog" & return & "Alert Types" & return & "cicn's" & return & "Color Icon Bars" & return & "Commercial Use" & return & "Debugging ShowDialog" & return & "Dialog Types" & return & "Making a DLOG/DITL Template (a step-by-step guide)" & return & "Making PICT's" & return & "Obtaining ResEdit" & return & "Other X-Commands:" & return & "┬á┬á┬á┬áAnts XFCN" & return & "┬á┬á┬á┬áClipToPICT XFCN" & return & "┬á┬á┬á┬áColorOn XFCN" & return & "┬á┬á┬á┬áCreditsDialog XCMD" & return & "┬á┬á┬á┬áTextDialog XCMD" & return & "┬á┬á┬á┬áPrintDoc XCMD" & return & "┬á┬á┬á┬áSplashDialog XCMD" & return & "PICT Maker" & return & "Registration" & return & "ResEdit" & return & "Shareware" & return & "ShowDialog Types:" & return & "┬á┬á┬á┬áType 1 (simple Dialogs and Alerts)" & return & "┬á┬á┬á┬áType 2 (Editable text fields & Check boxes)" & return & "┬á┬á┬á┬áType 3 (Editable text fields & Radio buttons)" & return & "┬á┬á┬á┬áType 4 (Editable text fields & Popup menu)" & return & "┬á┬á┬á┬áType 5 (Help screens and " & the NumToChar of 34 & "PICT" & the NumToChar of 34 & " dialogs)" & return & "┬á┬á┬á┬áType 6 (Help screens that cycle)" & return & "┬á┬á┬á┬áType 7 (Scrolling List)" & return & "Special Dialogs" & return & "Splash Screens" & return & "Window Types" & return into container
  126.   ShowDialog 1,5001,"",TRUE,80,100
  127.   if the result = 2 then exit doHelp
  128.   put "           Help Topics" into prompt
  129.   ShowDialog 7,5002,prompt,geneva,9,container,theItem,"one"
  130.   if line 1 of the result = 2 then exit doHelp
  131.   put line 2 of the result into theResult
  132.   put theResult into theItem
  133.   if theResult = 1 then
  134.     go cd "What is ShowDialog"
  135.   else if theResult = 2 then
  136.     go cd "Alert Types"
  137.   else if theResult = 3 then
  138.     go cd "Color Icon Bars"
  139.     send mouseUp to bg btn ID 10
  140.     find "cicn"
  141.   else if theResult = 4 then
  142.     go cd "Color Icon Bars"
  143.     send mouseUp to bg btn ID 11
  144.   else if theResult = 5 then
  145.     go cd "Shareware"
  146.     send mouseUp to cd btn ID 5
  147.   else if theResult = 6 then
  148.     go cd "Trouble Shooting"
  149.   else if theResult = 7 then
  150.     go cd "Dialog Types"
  151.   else if theResult = 8 then
  152.     go cd "Resedit"
  153.     hide cd pict
  154.     show bg fld ID 17
  155.     find string "Using ResEdit to make ShowDialog Dialogs"
  156.   else if theResult = 9 then
  157.     go cd "PICT Maker Menu"
  158.     send mouseUp to cd btn ID 1
  159.   else if theResult = 10 then
  160.     go cd "ResEdit"
  161.     send mouseUp to cd btn ID 4
  162.   else if theResult = 11 then
  163.     go cd "Auxiliary X-Commands"
  164.   else if theResult = 12 then
  165.     go cd "Auxiliary X-Commands"
  166.     send mouseUp to cd btn "Ants XFCN"
  167.   else if theResult = 13 then
  168.     go cd "Auxiliary X-Commands"
  169.     send mouseUp to cd btn "ClipToPICT XFCN"
  170.   else if theResult = 14 then
  171.     go cd "Auxiliary X-Commands"
  172.     send mouseUp to cd btn "ColorOn XFCN"
  173.   else if theResult = 15 then
  174.     go cd "More Aux"
  175.     send mouseUp to cd btn "CreditsDialog XCMD"
  176.   else if theResult = 16 then
  177.     go cd "More Aux"
  178.     send mouseUp to cd btn "TextDialog XCMD"
  179.   else if theResult = 17 then
  180.     go cd "Auxiliary X-Commands"
  181.     send mouseUp to cd btn "PrintDoc XCMD"
  182.   else if theResult = 18 then
  183.     go cd "More Aux"
  184.     send mouseUp to cd btn "SplashDialog XCMD"
  185.   else if theResult = 19 then
  186.     go cd "PICT Maker Menu"
  187.   else if theResult = 20 then
  188.     go cd "Shareware"
  189.     send mouseUp to cd btn ID 3
  190.   else if theResult = 21 then
  191.     go cd "ResEdit"
  192.   else if theResult = 22 then
  193.     go cd "Shareware"
  194.   else if theResult = 23 then
  195.     go cd "XCMD Types Menu"
  196.   else if theResult = 24 then
  197.     go cd "Type 1 XCMD"
  198.     send mouseUp to bg btn ID 11
  199.   else if theResult = 25 then
  200.     go cd "Type 2 XCMD"
  201.     send mouseUp to bg btn ID 11
  202.   else if theResult = 26 then
  203.     go cd "Type 3 XCMD"
  204.     send mouseUp to bg btn ID 11
  205.   else if theResult = 27 then
  206.     go cd "Type 4 XCMD"
  207.     send mouseUp to bg btn ID 11
  208.   else if theResult = 28 then
  209.     go cd "Type 5 XCMD"
  210.     send mouseUp to bg btn ID 11
  211.   else if theResult = 29 then
  212.     go cd "Type 6 XCMD"
  213.     send mouseUp to bg btn ID 11
  214.   else if theResult = 30 then
  215.     go cd "Type 7 XCMD"
  216.     send mouseUp to bg btn ID 11
  217.   else if theResult = 31 then
  218.     go cd "Special Dialogs"
  219.     send mouseUp to bg btn ID 11
  220.   else if theResult = 32 then
  221.     go cd "Special Dialogs"
  222.     send mouseUp to bg btn ID 11
  223.     find "Splash Screens"
  224.   else if theResult = 33 then
  225.     go cd "Window Types"
  226.   end if
  227. end doHelp
  228.